<template>
  <div class="currencySearch">
    <div class="currencySearchMain" @click="show = true">
      <input type="text" placeholder="请输入关键字" class="currencySearchFrame" />
      <input type="button" class="currencySearchButton" />
      <van-overlay :show="show" z-index="1000">
        <searchTopPopup @set:show='show = false'></searchTopPopup>
      </van-overlay>
    </div>
  </div>
</template>

<script>
import searchTopPopup from "@/components/popup/searchTopPopup.vue";

export default {
  name: "currencySearch",
  data() {
    return {
      show: false
    };
  },
  components: {
    searchTopPopup
  }
};
</script>

<style scoped>
.currencySearch {
  width: 70%;
  margin: auto;
  padding-top: 0.16rem;
}

.currencySearchMain {
  margin: 0 auto;
  position: relative;
}

.currencySearchMain .currencySearchFrame {
  display: block;
  width: 100%;
  position: relative;
  height: 0.56rem;
  border-radius: 0.06rem;
  border: 1px solid #ccc;
  padding: 0 0.6rem 0 0.2rem;
  box-sizing: border-box;
  font-size: 0.28rem;
  outline: none;
}

.currencySearchButton {
  display: block;
  width: 0.72rem;
  height: 0.56rem;
  position: absolute;
  top: 0;
  right: 0;
  content: "";
  background: url("../../assets/icon/ygseach.png") center center no-repeat;
  background-size: 0.32rem auto;
  outline: none;
  border: none;
}
</style>
